package mvc.service.impl;

import mvc.bo.UserLoginRequest;
import mvc.mapper.UserMapper;
import mvc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Integer login(UserLoginRequest userLoginRequest) {

        boolean result = userMapper.login(userLoginRequest);

        return result ? 0 : 1;
    }
}
